package client.window;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ListenerMenuEdit implements ActionListener
{
	MainFrame mf;
	
	public ListenerMenuEdit(MainFrame mf)
	{
		this.mf = mf;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) 
	{
		mf.remove(mf.getMainPanel());
		mf.remove(mf.getListSurnamePanel());
		mf.remove(mf.getEditSurnamePanel());
		mf.remove(mf.getListSurnamePanel());
		mf.add(mf.getEditSurnamePanel());
		mf.gettSurnom2().setText("");
		mf.gettSurnom3().setText("");
		mf.validate();
		mf.repaint();
	}

}